#!/usr/bin/env python

from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_moment import Moment
from flask_script import Manager
from config import config

bootstrap = Bootstrap()
moment = Moment()

app = Flask(__name__)
config_name = 'default'
app.config.from_object(config[config_name])
config[config_name].init_app(app)

bootstrap.init_app(app)
moment.init_app(app)
manager = Manager(app)


@app.route('/', methods=['GET', 'POST'])
def index():
    return render_template('user.html', name='david')


if __name__ == '__main__':
    manager.run()
